<template>
    <div>
        <h1>分类列表</h1>
        <div class="typeList">
            <Item title="图片">
                <!-- 在使用组件是,在标签内部书写的结构,就是传递给组件的插槽 -->
                <img src="./assets/03.gif" style="width: 100%" alt="" />
            </Item>
            <Item title="音乐">
                <ul>
                    <li>等你下课</li>
                    <li>放学别走</li>
                </ul>
            </Item>
            <Item title="视频">
                <video
                    src=""
                    autoplay
                    muted
                    style="width: 100%"
                ></video>
            </Item>
        </div>
    </div>
</template>

<script>
import Item from "./components/Item";
export default {
    name: "App",
    components: {
        Item,
    },
    data() {},
};
</script>

<style scoped>
.typeList {
    display: flex;
    justify-content: space-around;
}
</style>
